package designmode.decorator;

public class Main {
    public static void main(String[] args) {
        BaseCar car = new BaseCar();
        CarDecorator carDecorator = new FlyCarDecorator(car);
        carDecorator.show();
        CarDecorator carDecorator1 = new SwimCarDecorator(carDecorator);
        carDecorator1.show();
    }
}
